package SmartHome.entity;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.SimpleIntegerProperty;
/**
 * ClassName : familyInfo
 * Description :
 * Author : Wang Beijia
 * Date: 2021-07-05 20:45
 */
public class FamilyInfo {
    private final SimpleIntegerProperty familyId;
    private final SimpleStringProperty familyName;
    private final SimpleIntegerProperty fPhoneNumber;
    public int fState;

    public FamilyInfo(Integer familyId, String familyName, Integer fPhoneNumber,int fState) {
        this.familyId = new SimpleIntegerProperty(familyId);
        this.familyName = new SimpleStringProperty(familyName);
        this.fPhoneNumber = new SimpleIntegerProperty(fPhoneNumber);
        this.fState = fState;
    }

    public int getFamilyId() {
        return familyId.get();
    }
    public SimpleIntegerProperty familyIdProperty() {
        return familyId;
    }
    public void setId(int familyId) {
        this.familyId.set(familyId);
    }

    public String getFamilyName() {
        return familyName.get();
    }
    public SimpleStringProperty familyNameProperty() {
        return familyName;
    }
    public void setFamilyName(String familyName) {
        this.familyName.set(familyName);
    }

    public int getFPhoneNumber() {
        return fPhoneNumber.get();
    }
    public SimpleIntegerProperty fPhoneNumberProperty() {
        return fPhoneNumber;
    }
    public void setFPhoneNumber(int fPhoneNumber) {
        this.fPhoneNumber.set(fPhoneNumber);
    }

    @Override
    public String toString() {
        return "familyInfo{" +
                "familyId=" + familyId +
                ", familyName='" + familyName + '\'' +
                ", fPhoneNumber='" + fPhoneNumber + '\'' +
                ", fState='" + fState + '\'' +
                '}';
    }
}
